home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / hdf / unix / examples.lha / examples / sds / Makefile < prev    next >
Encoding:
Makefile  |  1991-10-18  |  686 b   |  45 lines

  1. # @(#)Makefile  07/19/90
  2. #
  3. #
  4. # Note: change these paths to conform to your system:
  5.  
  6. MACHINE = SUN
  7.  
  8. INCDIR = /stg1/dilg/r5
  9. LIBS    = /stg1/dilg/testr5/lib/libdf.a -lm
  10. FILESDIR = ../files
  11.  
  12. RM      = rm -f
  13. CC      = cc
  14. FC      = f77
  15. DEFS    = -D${MACHINE}
  16.  
  17. CFLAGS  = -g ${DEFS} -I${INCDIR}
  18. FFLAGS  = -g 
  19. LDFLAGS =
  20.  
  21. CPROGS  = buildsds
  22. FPROGS  = sdsampl1F
  23. COBJS   = generate.o
  24.  
  25. all:    ${COBJS} cprogs fprogs generate.o 
  26.  
  27. cprogs: ${CPROGS}
  28.  
  29. fprogs: ${FPROGS}
  30.  
  31. $(CPROGS):
  32.     ${CC} ${CFLAGS} $@.c ${LDFLAGS} ${COBJS} ${LIBS} ${GLIBS} -o $@
  33.  
  34. $(FPROGS):
  35.     ${FC} ${FFLAGS} $@.f ${LDFLAGS} ${COBJS} ${LIBS} ${GLIBS} -o $@
  36.  
  37. cleanup:
  38.     -${RM} $(CPROGS)
  39.     -${RM} $(FPROGS)
  40.     -${RM} test.hdf o?
  41.     -${RM} *.o
  42.  
  43.  
  44.  
  45.